package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName tb_collection
 */
@ApiModel(description = "收藏表")
@TableName(value ="tb_collection")
@Data
public class Collection implements Serializable {
    /**
     * 用户收藏表ID
     */
    @ApiModelProperty("用户收藏表ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer uid;

    /**
     * 收藏的商家id
     */
    @ApiModelProperty("收藏的商家id")
    private Integer shopid;

    /**
     * 收藏的商品id
     */
    @ApiModelProperty("收藏的商品id")
    private Integer goodsid;

    /**
     * 收藏类型 0商家 1商品
     */
    @ApiModelProperty("收藏类型 0商家 1商品")
    private Integer status;

    /**
     * 逻辑删除
     */
    @ApiModelProperty("逻辑删除")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)//添加时自动填充
    private Integer isDeleted;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}